<?php
/*
 * Boilerplate
 */

// Set configuration variables if not already set
if(!isset($mod_path)) { $mod_path = 'assets/modules/foxyback'; }

$base_path = $modx->config['base_path'];

// If we can't find the module files...
if(!file_exists($base_path.$mod_path))
{
	// Log an error
	$error_message = '<strong>FoxyBack module not found!</strong></p><p>Edit the FoxyBack module, click the Configuration tab and change the Module Path to point to the module.</p>';
	$modx->Event->alert($error_message);
	$modx->logEvent(0, 3, $error_message, 'FoxyBack');
}
else
{
	$fb = new FoxyBack;
	//$fb->function();
}

?>
